package com.ctshk.rpc.train.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 火车车次表
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_train_number")
@ApiModel(value="TrainNumber对象", description="火车车次表")
public class TrainNumber extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "铁路公司id")
    private Long railwayCorporationId;

    @ApiModelProperty(value = "铁路公司名称")
    private String railwayCorporationName;

    @ApiModelProperty(value = "车次类型")
    private Long typeId;

    @ApiModelProperty(value = "车次类型名称")
    private String typeName;

    @ApiModelProperty(value = "车次名称")
    private String trainNumberName;

    @ApiModelProperty(value = "出发城市id")
    private Long departureCityId;

    @ApiModelProperty(value = "出发城市名称")
    private String departureCityName;

    @ApiModelProperty(value = "到达城市id")
    private Long arriveCityId;

    @ApiModelProperty(value = "到达城市名称")
    private String arriveCityName;

    @ApiModelProperty(value = "始发站点id")
    private Long departureStationId;

    @ApiModelProperty(value = "出发时间")
    private LocalDateTime departureTime;

    @ApiModelProperty(value = "始发站点名称")
    private String departureStationName;

    @ApiModelProperty(value = "终点站id")
    private Long terminusId;

    @ApiModelProperty(value = "终点站名称")
    private String terminusName;

    @ApiModelProperty(value = "是否有效")
    private Integer status;

    @ApiModelProperty(value = "小童岁数起始")
    private Integer childAgeBegin;

    @ApiModelProperty(value = "小童岁数结束")
    private Integer childAgeEnd;

    @ApiModelProperty(value = "成人岁数起始")
    private Integer adultAgeBegin;

    @ApiModelProperty(value = "成人岁数结束")
    private Integer adultAgeEnd;

    @ApiModelProperty(value = "长者岁数起始")
    private Integer oldAgeBegin;

    @ApiModelProperty(value = "到达时间")
    private LocalDateTime terminusTime;

    @ApiModelProperty(value = "天数")
    private String day;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
